﻿<!-- 继承公共文件 -->
<extend name="./Application/Admin/view/layout.html" />
 <block name="mid">
 <h3>员工列表</h3>
 <div class="col-lg-12 col-md-12 col-sm-12">
             <hr>
            
              <a class="glyphicon glyphicon-plus  btn btn-success btn-lg" href="{:U('Admin/admin/add')}">添加员工</a>

             </div>
             <br>
    
     <div class="">
           <div class="table-responsive">
                                <table class="table table-striped table-bordered table-hover">
                            <thead>
                                <tr>
                                    <th>id</th>
                                    <th>头像</th>
                                    <th>用户名</th>
                                    <th>邮箱</th>
                                    <th>QQ</th>
                                    <th>地址</th>
                                     <th>手机</th>
                                     <th>年龄</th>
                                     <th>性别</th>
                                     <th>审核</th>
                                     <th>操作</th>



                                </tr>
                            </thead>
                            <tbody>
                            <foreach name="list" key="k" item="v">
                                <tr>
                                    <td>{$v.id}</td>
                                    <td><img width="35" height="35" src="__ROOT__/{$v.file}"></td>

                                    <td>{$v.username}</td>
                                    <td>{$v.email}</td>
                                    <td>{$v.QQ}</td>                                                       
                                    <td>{$v.adrees}</td>
                                    <td>{$v.tel}</td>
                                    <td>{$v.age}</td>
                                    <td>{$v['sex']==1?'男':'女'}</td>
                                    <td>{$v['status']==1?'审核通过':'待审核'} </td>
                                    <td>
                                    <button class="btn btn-info" type="button">Info</button>
                                    <a href="{:U('Admin/admin/edit/id/'.$v['id'])}" class="btn btn-warning" type="button"> 编辑</a></a>
                                    <button class="btn btn-danger" type="button">删除</button> 
                                    </td>

                                </tr>
                                </foreach>


                                
                            </tbody>
                        </table>
                        <ul class="pagination">
                              
                              {$page}
                            </ul>
               </div>
             <hr>
            
            
            
         </div>

  </block>















